<?php

Yii::import('application.models._base.BaseUsers');

class Users extends BaseUsers {

    public static function model($className = __CLASS__) {
        return parent::model($className);
    }

    public function relations() {
        return array(
            'authKeys' => array(self::HAS_MANY, 'AuthKey', 'user_id'),
            'profiles' => array(self::HAS_MANY, 'Profiles', 'user_id'),
            'userHasRoles' => array(self::HAS_MANY, 'UserHasRole', 'user_id'),
        );
    }

}